require(['controllers/baseController', 'models/productModel', 'text!templates/home.html'], function(base, product, homeTpl) {
    //这里主要是获取model数据操作
    //将数据显示到对应的模板中
    //这里可以替换模板引擎处理数据显示

    var $ = base.jQuery;
    var ko = base.knockout;
    var util = base.util;

    var vm = function() {
        var self = this;
        self.items = ko.observableArray([1, 2, 3, 4, 5]);
    }

    setTimeout(function() {
        $('#appIndex').html(homeTpl);
        util.bind(vm, 'foreachId');
    }, 500);


});